//
//  Utils.h
//  QMCXDriver
//
//  Created by Massimo on 2017/4/14.
//  Copyright © 2017年 Massimo. All rights reserved.
//

#ifndef Utils_h
#define Utils_h
#define QScreenWidth [UIScreen mainScreen].bounds.size.width
#define QScreenHeight [UIScreen mainScreen].bounds.size.height
#define QScreenScale [UIScreen mainScreen].scale
#define LLStoryboard(StoryboardName,ViewControllerName) [[UIStoryboard storyboardWithName:(StoryboardName) bundle:nil] instantiateViewControllerWithIdentifier:(ViewControllerName)]


#define kFont(F) [UIFont systemFontOfSize:F]
#define kBoldFont(F) [UIFont boldSystemFontOfSize:F]

#define LLColorRGB(R,G,B) [UIColor colorWithRed:(R/255.f) green:(G/255.f) blue:(B/255.f) alpha:1.0]

#define LLColorRGBA(R,G,B,A) [UIColor colorWithRed:(R/255.f) green:(G/255.f) blue:(B/255.f) alpha:(A)]



#define ERROR_HOME_EMPTY_INFO @"暂时没有新订单"
#define ERROR_NETWORK_INFO @"网络错误，请稍后重试"

#define IMAGENAME_ERROT_HOME_EMPTY @"icon_home_empty"
#define IMAGENAME_ERROT_NETWORK @"icon_network_error"


//重写NSLog,Debug模式下打印日志和当前行数
#if DEBUG
#define NSLog(FORMAT, ...) fprintf(stderr,"\nfunction:%s line:%d content:%s\n", __FUNCTION__, __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else
#define NSLog(FORMAT, ...); nil;
#endif

#endif /* Utils_h */
